package com.hyl.domain.trade.service;

import com.hyl.domain.trade.model.entity.NotifyTaskEntity;
import com.hyl.domain.trade.model.entity.TradePaySettlementEntity;
import com.hyl.domain.trade.model.entity.TradePaySuccessEntity;

import java.util.Map;

/**
 * @author hyl
 * @description 交易结算接口
 * @create 2025-07-04 11:16
 */
public interface ITradeSettlementOrderService {
    /**
     * 营销结算
     * @param tradePaySuccessEntity 交易支付订单实体对象
     * @return 交易结算订单实体
     */
    TradePaySettlementEntity settlementMarketPayOrder(TradePaySuccessEntity tradePaySuccessEntity) throws Exception;
    /**
     * 执行结算通知任务
     *
     * @return 结算数量
     * @throws Exception 异常
     */
    Map<String, Integer> execSettlementNotifyJob() throws Exception;

    /**
     * 执行结算通知任务
     *
     * @param
     * @return 结算数量
     * @throws Exception 异常
     */
    /*Map<String, Integer> execSettlementNotifyJob(String teamId) throws Exception;*/

    Map<String, Integer> execSettlementNotifyJob(NotifyTaskEntity notifyTaskEntity) throws Exception;

}
